home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / rbbs_pc / rbbsdocs.zip / RBBSDOCS.12A < prev    next >
Text File  |  1990-11-05  |  31KB  |  577 lines

  1.  
  2.  
  3.  
  4.     RBBS-PC's FILE MANAGEMENT SUBSYSTEM                                    12-1
  5.  
  6.  
  7.     12. RBBS-PC's FILE MANAGEMENT SUBSYSTEM
  8.     ---------------------------------------
  9.     The File Subsystem allows RBBS-PC to maintain a list of files available for
  10.     downloading.   Users can list files by date, category, or by using a search
  11.     argument.  RBBS-PC refers to a file that contains a list of files available
  12.     for downloading  as a "directory" (i.e. a  .DIR file).  This  should not be
  13.     confused with DOS "subdirectories."
  14.  
  15.     There  are two ways to  configure the File  System.  One is  to have simple
  16.     "directory"  files.  The  other is to  have a FILE  MANAGEMENT SYSTEM (FMS)
  17.     file  that  contains the names,  sizes, dates, and  description of all  the
  18.     files available for downloading.
  19.  
  20.     You may use both methods at once if you  wish.  RBBS-PC will support both a
  21.     master FMS and separate .DIR files on the same system. CONFIG parameter 215
  22.     controls whether RBBS-PC looks beyond  the FMS directory.  If you  have any
  23.     separate directories,  set  215 to  NO.   If  you have  only a  single  FMS
  24.     directory, set parameter 215 to YES.  If directory searches are not limited
  25.     to the  FMS directories and RBBS-PC does  not find the category  in the FMS
  26.     listing, it will look for the old-style DIR files.
  27.  
  28.     12.1 Simple Directory Format
  29.     ----------------------------
  30.     The  simple directories, also referred to as the old-style directories, are
  31.     simply  text files.  These files  are identified  by their  file extension,
  32.     specified in CONFIG, common  to all the directories.  The default extension
  33.     is .DIR, but  it can be changed  via parameter 209.   There is a  directory
  34.     which  lists the  directory  names and  their  descriptions whose  name  is
  35.     specified via parameter 211 of CONFIG.
  36.  
  37.     Each  directory may  have anything  in it,  including ANSI codes.  The only
  38.     restriction is that  in order for  the N)ew command  to work properly,  the
  39.     date must be somewhere in the first 31 characters.
  40.  
  41.     All  uploads  are  placed  into  a  single  directory,  called  the  upload
  42.     directory, specified in parameter 202 & 203.  All other directories must be
  43.     in  the  drive\path specified  in parameter  220.   This  includes  the FMS
  44.     directory and the list of DIR files, (DIR.DIR).
  45.  
  46.     There are,  therefore, four logical areas into  which the file subsystem is
  47.     divided. Each one may reside in a separate DOS subdirectory, or all of them
  48.     may be lumped together.
  49.  
  50.          Logical Area                       CONFIG
  51.     1. The files for DOWNLOAD               parameter  204, parameter  205, and
  52.                                             parameter 207
  53.     2. The files that have been uploaded    parameter 201 and parameter 206
  54.     3. The upload directory file listing.   parameter 202 and parameter 203
  55.     4. The download directory files.        parameter 220
  56.  
  57.     The file management system not only  manages these "lists" of files, but it
  58.     manages where on your system  the files are actually stored.   RBBS-PC will
  59.     not allow a caller  to download a file unless it finds  this file where the
  60.     SysOp has instructed RBBS-PC to look.  There are two ways of doing this:  A
  61.     download "path," and the Fast File Search.
  62.  
  63.     Config  parameter 204  tells  RBBS-PC  which  DRIVES  can  be  checked  for
  64.     downloads.   If you do not  use DOS subdirectories, RBBS-PC  looks on these
  65.     drives for downloads.  The parameter is specified with the drive letters to
  66.  
  67.  
  68.  
  69.     RBBS-PC 17.3A            TECHNICAL REFERENCE MANUAL                    12-2
  70.  
  71.  
  72.     search.  For example: BAC would search Drive B, then Drive A, then Drive C.
  73.  
  74.     If  the files  are not in  the default directory  then you need  to use the
  75.     CONFIG  parameter 205 and parameter 207.   Parameter 205 specifies that you
  76.     want to sue DOS sub-directories and parameter 207 allows you  to list them.
  77.     Use drive:\path format.
  78.  
  79.     Any directory can be in the Single FMS format.  This allows special purpose
  80.     directories to be put  into FMS format so they  can take advantage of  such
  81.     features as resumable listings normally associated just with the Single FMS
  82.     environment.   An unlimited number  of lines  of text can  be added to  any
  83.     description (see CONFIG parameter 40, parameter 148, and parameter 153).
  84.  
  85.     The  file directories  have  absolutely  no  bearing  on  what  is  in  the
  86.     subdirectory.  A file can be listed but not exist, and a file, such  as one
  87.     uploaded  with the /  for SysOp option,  may exist but not  be entered. The
  88.     file  directories are  simply methods to  get the  caller a  listing of the
  89.     files available.
  90.  
  91.     12.2 The Single and Chained FMS Directory Format
  92.     ------------------------------------------------
  93.     FMS logically just  lumps all the old  style separate directories into  one
  94.     directory file, called the MASTER or FMS directory, and assigning each file
  95.     a  CATEGORY CODE,  which may  correspond  to the  directory it  was in  the
  96.     original  directories.  A utility program called CNVDIR.EXE will do exactly
  97.     this: combine the  separate directories  and add the  category code at  the
  98.     end.   If you  do not already  have separate directories,  simply set it up
  99.     with a text editor using the columns indicated.
  100.  
  101.     Beginning with  17.2A FMS directories  can be "chained".   This means  that
  102.     physically separate files  can be logically combined  to form a  single FMS
  103.     directory.    This is accomplished  by putting the following  in the header
  104.     record (a header  record in an FMS  directory is the first record  and must
  105.     begin with "\FMS "):
  106.  
  107.                        CH(<chain to>)
  108.  
  109.     where <chain to> is the name of the file to chain to.  As an example
  110.  
  111.     \FMS CH(C:\DIRS\CHTO.DIR)
  112.  
  113.     would chain  to the  file "C:\DIRS\CHTO.DIR".   Names of  files not  in the
  114.     default directory must  have a drive and/or path specified.   The directory
  115.     chained to can in  turn have a chain, and  there is no limit to  the number
  116.     that can be chained together.  Note that this "header" record must have the
  117.     same  length as the rest  of the lines  in the directory,  and will usually
  118.     have to be padded out with blanks.
  119.  
  120.     The  directory chained  to  is  an independent  FMS  directory  and can  be
  121.     anywhere and have any extension.    A given directory can have at  most one
  122.     directory to  chain to.  Chained directories can be used to keep the upload
  123.     directory small for easier editing, or to better fit the latest directories
  124.     on a fast  RAM disk while keeping older  directories on a slower  hard disk
  125.     (e.g. a  SysOp divides  the directories  into UPLOADS.DIR,  87.DIR, 86.DIR,
  126.     85.DIR,  and  84.DIR   to  reflect  the   year  in   which  the  file   was
  127.     created/uploaded).
  128.  
  129.  
  130.  
  131.     RBBS-PC's FILE MANAGEMENT SUBSYSTEM                                    12-3
  132.  
  133.  
  134.     12.3 Advantages/Disadvantages of FMS Directory
  135.     ----------------------------------------------
  136.     Having a FMS directory has the following advantages:
  137.  
  138.       1. Callers  get the  newest files  listed first.   The  directory can  be
  139.          displayed EITHER  from top to bottom  or bottom to top.   Reading from
  140.          bottom up  is appropriate when files  are in date order  and new files
  141.          are  appended to the bottom.   When files  are alphabetized or grouped
  142.          some other way, it is more appropriate to read them from the top down.
  143.  
  144.       2. The directory is listed with MORE ([Y],N) or files to download prompts
  145.          throughout   the  listing,  so  at  any  time  the  caller  may  begin
  146.          downloading, and  pick up where they left off in the listing after the
  147.          download is completed.
  148.  
  149.       3. Wildcard  searches on filenames are supported as well as exact matches
  150.          on  strings  in  the  file S)earch  command.    Whenever  a  wild card
  151.          character (* and  ?) is specified  in the search string,  RBBS-PC will
  152.          automatically  shift to  matching just  the file  name.   Exact string
  153.          matches search the full entry rather than just the file  name.  String
  154.          searches  include extended  descriptions for  FMS directories,  but in
  155.          non-FMS directories only  the first  line of the  file description  is
  156.          searched.
  157.  
  158.       4. Classification of  files is easy. All  that is necessary  is an editor
  159.          that produces ASCII files, and a file is classified by a category code
  160.          of up to  3 characters. To change a file  from directory to directory,
  161.          all that is necessary is  to change the category code. No  more "erase
  162.          it here and add it there."
  163.  
  164.       5. No  SysOp maintenance  is necessary  for new  uploads. The  caller can
  165.          classify the  upload with a category  code, and the SysOp  can specify
  166.          that the new uploads become instantly available.
  167.  
  168.       6. Complex  classifications can be made  very simply. A  category code is
  169.          not necessarily  the category the caller  must type in.  The SysOp can
  170.          elect  to have a classification system where  one code that the caller
  171.          types in will list  several different category codes. You  can include
  172.          the file in two directories without having two separate entries.
  173.  
  174.       7. FMS  directories  can  have  "headers"  (i.e.   free  text  lines  not
  175.          associated  with any particular file).  This allows things like column
  176.          headers or help to  be included, as well as section headers.   A SysOp
  177.          may  wish  to separate  a  "communications  directory" into  different
  178.          sections such as one for QMODEM and one for RBBS-PC.  A free text line
  179.          begins with "*"  and is universally displayed if  the category code is
  180.          "***" otherwise it is only displayed when the category associated with
  181.          the line is selected.
  182.  
  183.       8. Multi-line descriptions (i.e.  "extended" descriptions) are  supported
  184.          in both FMS and "old-style" directories.  All columns except the first
  185.          one are available for  the description.  For FMS  directories extended
  186.          descriptions have the same  characteristics as the file that  they are
  187.          associated with.
  188.  
  189.       9. The  ability to  enter "extended" descriptions  for uploaded  files is
  190.          based on the caller's security level (see CONFIG parameter 127).
  191.  
  192.  
  193.  
  194.     RBBS-PC 17.3A            TECHNICAL REFERENCE MANUAL                    12-4
  195.  
  196.  
  197.      10. Caller's  can  list  the  RBBS-PC  file  directories with  or  without
  198.          extended description.  As an example, a caller would enter the command
  199.          "L - UPLOADS" to list the files in the directory UPLOADS with only one
  200.          line descriptions.  The command "L + UPLOADS" would list the same file
  201.          with extended descriptions.
  202.  
  203.      11. Archived files  can be viewed with the  V)iew command when listing FMS
  204.          directories and  the listing will  resume where it  left off prior  to
  205.          issuing the V)iew command.
  206.  
  207.      12. Individual  entries  within  a  FMS  directory  can  be  restricted to
  208.          specific security levels.
  209.  
  210.      13. Comment lines can be included in FMS directories which are never shown
  211.          to a  caller.  Often such  comments are useful reminders  to the SysOp
  212.          who is maintaining the FMS directories.
  213.  
  214.      14. Callers can add upload descriptions  without actually uploading a file
  215.          (see  CONFIG parameter 153).   This is typically  useful to the SysOp.
  216.          It makes  it easy to start  an FMS upload directory  without having to
  217.          know anything about its internals  or how to use an editor.   With the
  218.          exception  of a  CORVUS network  environment, FMS  directories can  be
  219.          updated without taking the system down first.  All the  caller does is
  220.          issue  the normal  upload command.    If RBBS-PC  finds that  the file
  221.          already exists and that  the caller has the necessary  security level,
  222.          RBBS-PC will get the file size and  proceed exactly as if the file had
  223.          just been uploaded.
  224.  
  225.      15. Searches for new files is EXTREMELY fast because RBBS-PC does not have
  226.          to search all directories if the single FMS directory is in date order
  227.          (most recent date last)
  228.  
  229.      16. Latest uploads are  always shown first,  if the  SysOp has elected  to
  230.          make them viewable and the master FMS is in date order.
  231.  
  232.      17. Searches  for text  will  scan the  text  in the  extended  multi-line
  233.          descriptions.
  234.  
  235.      18. Composite  categories  can  be  logically  constructed  out  of  other
  236.          categories (see section 12.5).
  237.  
  238.      19. Entries do not have to be  physically moved to other .DIR files  to be
  239.          classified as belonging to it.
  240.  
  241.      20. FMS  directories  can be  "chained"  to  accommodate those  multi-user
  242.          environments,  such as Corvus's  OMNINET, which  will not  allow files
  243.          that change in length to be shared. In  such an environment FMS can be
  244.          used,  but the FMS directory must "chain"  to the upload directory and
  245.          their must be a separate upload directory for each node.
  246.  
  247.     Regrettably, the FMS directory also has ONE remaining limitations which may
  248.     make it unsuitable for all SysOp's needs.
  249.  
  250.       1. The date must be in MM-DD-YY format. Any single digit number must have
  251.          a leading zero.
  252.  
  253.     If FMS does not totally satisfy your needs, you  can use both.  RBBS-PC can
  254.     be configured  to look for  an old style  directory if it  does not  find a
  255.  
  256.  
  257.  
  258.     RBBS-PC's FILE MANAGEMENT SUBSYSTEM                                    12-5
  259.  
  260.  
  261.     directory in the FMS.   If it finds one it will display it. If it does not,
  262.     it displays the familiar "Directory XXX not found!" message.
  263.  
  264.     12.4 Creating FMS Directories
  265.     -----------------------------
  266.     If  you already have separate directories, it would  be a good idea to copy
  267.     all of them into a  single one called MASTER.DIR.  Detailed  directions are
  268.     given in the documentation for CNVDIR.   In DOS this can be done like this:
  269.  
  270.                     COPY xxx.DIR+xxx.DIR+xxx.DIR... MASTER.DIR
  271.  
  272.     where xxx is  the name of  the old style  directories. The  3 dots mean  to
  273.     continue until you have  all of the directories you wish  to include in the
  274.     FMS directory.
  275.     In addition to the  "old style" file directories described in section 12.1,
  276.     RBBS-PC supports two types of FMS "directories" -- multiple, single-subject
  277.     FMS  directories or  a single  multiple-subject master  FMS directory.   If
  278.     there  are going to be multiple, single-subject FMS directories, there must
  279.     also be a "directory  of directories" (i.e. a master  directory) whose name
  280.     is specified in CONFIG parameter  211 and there can not be more  than 99 of
  281.     these single-subject FMS directories.  If there is going to be a single FMS
  282.     directory,  it's name  is  specified  in  CONFIG  parameter  214  and  it's
  283.     qualifier is specified in CONFIG parameter 209.
  284.  
  285.     An example of multiple FMS directories that assumes the following:
  286.     CONFIG parameter 220 is "C:\FMS",
  287.     CONFIG parameter 209 is "DIR",
  288.     CONFIG parameter 211 is "DIR", and the following files existed:
  289.  
  290.        C:\FMS\DIR.DIR
  291.        C:\FMS\ALPHA.DIR
  292.        C:\FMS\BEST.DIR
  293.  
  294.     The file ALPHA.DIR can be a FMS directory  with an alphabetical list of all
  295.     files and BEST.DIR can be a FMS directory with a  date-ordered (latest date
  296.     last) list of the "best" files.
  297.  
  298.     An FMS  directory can  have an  optional "header"  line that  describes the
  299.     structure of the directory.   RBBS-PC searches FMS directories  from bottom
  300.     to top by default (i.e. the assumption is that they are sorted by date with
  301.     the newest entry at the bottom).  To make an FMS directory read from top to
  302.     bottom, the  directory must  have the optional  "header" line as  the first
  303.     line.  For FMS to  read a FMS directory  from top to  bottom the first four
  304.     characters in the first line must be "\FMS" and the line must contained the
  305.     three characters "TOP" (i.e.  the whole fixed-length line would  read "\FMS
  306.     TOP"). For  FMS directories not sorted  by date, the word  "NOSORT" must be
  307.     present  in  the first  line  (i.e. the  whole  line would  read  "\FMS TOP
  308.     NOSORT").  The file  ALPHA.DIR would have the first  line in the file  read
  309.     "\FMS TOP NOSORT".  The file BEST.DIR would have the first line in the file
  310.     read "\FMS TOP" if all searches  of the file were to start with  the oldest
  311.     (i.e. first) entry.   It is important to realize  that FMS directories must
  312.     have a fixed length in every line.
  313.  
  314.     The columns of all FMS directories are set up as:
  315.  
  316.     Column               Purpose
  317.  
  318.      1-13                Filename
  319.     14-22                File size
  320.  
  321.  
  322.  
  323.     RBBS-PC 17.3A            TECHNICAL REFERENCE MANUAL                    12-6
  324.  
  325.  
  326.     24-31                Date in MM-DD-YY format
  327.     34+                  Description + category code
  328.  
  329.     To add comments to an FMS directory  and not have them shown to the caller,
  330.     simply begin the comment line with a slash, "\".
  331.  
  332.     To force  a  line  to be  displayed  that is  not  associated with  an  FMS
  333.     directory entry,  begin the line with  an asterisk and, if  it is displayed
  334.     for only specific categories, the appropriate category restriction.
  335.  
  336.     To make an FMS entry visible only to callers with a specific security level
  337.     or higher, the first character of the file name must be an equal sign, "=".
  338.     For  this entry, the  file name is  in columns 2  through 13.   The minimum
  339.     security  to view this entry  goes in column 34 and  is followed by a blank
  340.     and then the description  and category code within the  columns appropriate
  341.     for them (based on CONFIG parameter 219).
  342.  
  343.     CONFIG parameter 219 specifies the length of the "description" field (40 to
  344.     46).   The  column  containing the  "category"  codes can  be  variable  as
  345.     follows:
  346.  
  347.     Length            Columns for description      Category code column
  348.  
  349.      40                     34-73                        74-76
  350.      41                     34-74                        75-77
  351.      42                     34-75                        76-78
  352.      43                     34-76                        77-79
  353.      44                     34-77                        78-80
  354.      45                     34-78                        79-81
  355.      46                     34-79                        80-82
  356.  
  357.     However,  some  text editors  may  have a  problem  with lines  80  or more
  358.     columns.
  359.  
  360.     The fussiest areas for use with FMS are the DATE and CATEGORY CODE  fields.
  361.     These two  must be  absolutely perfect  for FMS to  function properly.  The
  362.     others may be slightly more lenient. In  order to get the directory in  the
  363.     correct format, insert and delete spaces before and after the  column.  The
  364.     file name should not have interior or leading blanks.
  365.  
  366.     You must also add a  category code to each listing. This is  often the most
  367.     difficult  and time consuming  part of  setting up FMS.  A good idea  is to
  368.     format the rest of the directory before you add the codes.
  369.  
  370.     CONFIG has  a utility, parameter  187, that will  check your  FMS directory
  371.     structure  for you.   If a caller  uploads with a  "/" for SysOp,  a *** is
  372.     placed for the category code and only those with a SysOp security level may
  373.     view the listing (see CONFIG parameter 125).
  374.  
  375.     12.5 Defining the FMS Category Codes
  376.     ------------------------------------
  377.     In  order for FMS  to work correctly,  the category codes  must be defined.
  378.     This is done in  a file specified in parameter 217 of  CONFIG. This file is
  379.     rather interesting in the  way it is set up and the possibilities it brings
  380.     up. The format of this file is, with each line being a separate entry:
  381.  
  382.     "<Category name>","<Category codes>","<Category description>"
  383.  
  384.  
  385.  
  386.  
  387.     RBBS-PC's FILE MANAGEMENT SUBSYSTEM                                    12-7
  388.  
  389.  
  390.     The category name is what  the caller types in L;xxxxxxxxxx.   The category
  391.     codes are a  list of the character codes in the  FMS directory that we want
  392.     to be under  this category name.  Category  codes can be 1 to  3 characters
  393.     long,  though the simplest  and most foolproof  method is to  make them all
  394.     exactly 3  characters long.  The  category description is a  short messages
  395.     that we want displayed when the category is searched for.
  396.  
  397.     If the category codes are less than 3  characters in length, blanks must be
  398.     added  to the right to  fill out the  length to exactly 3  when putting the
  399.     category codes on the end of file entry.
  400.  
  401.     A listing  can contain several  category codes. This means  that a category
  402.     name of  BASIC  could have  the  category codes  BSU,BSG,BSS  in it.    The
  403.     category codes may  be overlapped  in several different  directories.   For
  404.     example, the BASIC  directory used as an example could  also have each code
  405.     included in another  directory.   UTILS could contain  DSU,PRU (Dos  utils,
  406.     Printer  utils). GAMES  could  contain CGG,BSG,TXG  (Color Graphics  Games,
  407.     Basic Games, Text games).  BASIC could contain BSG,BSS ( Basic Games, Basic
  408.     Source).  SOURCE could contain ACS,BSS (Assembly code source, Basic Source)
  409.     Such a setup would look like this:
  410.  
  411.         "BASICG","BSG","Basic Games"
  412.         "TEXTG","TXG","Text Games"
  413.         "COLORG","CGG","Color Graphics Games"
  414.         "PRINT","PRU","Printer Utilities"
  415.         "DOS","DSU","Dos Utilities"
  416.         "ASSEM","ACS","Assembler source code"
  417.         "BSOURCE","BSS","Basic Source Code"
  418.         "UTILS","DSU,PRU","Utilities for IBM"
  419.         "GAMES","CGG,BSG,TXG","Games for IBM"
  420.         "BASIC","BSG,BSS","BASIC programs"
  421.         "SOURCE","ACS,BSS","Source code for different languages"
  422.  
  423.     The directory might look like:
  424.  
  425.     FFIND.ARC      13463   05-24-87  DOS Util look all over disk for file   DSU
  426.     QUEST.ARC      17325   06-02-87  C/G Game D&D style                     CGG
  427.     RBBS-SRC.ARC  202562   06-05-87  Source code for RBBS-PC                BSS
  428.     QMODEMSC.ARC  106735   06-07-87  Source code for QMODEM SST             PSS
  429.     BALLOON.ARC     5634   06-08-87  BASIC Balloon game- GREAT              BSG
  430.     STARTREK.ARC   76434   06-10-87  A great game- TEXT                     TXG
  431.  
  432.     When someone lists out GAMES, they get QUEST, BALLOON, and STARTREK.
  433.  
  434.     You can  also have simply  a one to  one correspondence, rather  than cross
  435.     referencing by just having one category code for each category.
  436.  
  437.     A  utility that will help you  in setting up your FMS  directory is a SysOp
  438.     function built  into CONFIG.  Parameter 187 will test the structure of your
  439.     FMS directory and diagnose any problems.  Be sure to run this utility after
  440.     you have tried to set up FMS, or whenever you edit the FMS directory file.
  441.  
  442.     12.6 The "Library" Subsystem, CD-ROM, and FMS
  443.     ---------------------------------------------
  444.     The RBBS-PC "library" sub-system is highly flexible subsystem that utilizes
  445.     DOS 'disk  subdirectories.  The  "library" subsystem is not  limited to any
  446.     particular medium.  Basically, it relies on three files:
  447.  
  448.  
  449.  
  450.     RBBS-PC 17.3A            TECHNICAL REFERENCE MANUAL                    12-8
  451.  
  452.  
  453.     DIR.CDR   -   This is the Directory of Directories just like DIR.DIR is the
  454.     Directory of  Directories  for the  normal  download area.    This file  is
  455.     located on  the drive and  path designated in  CONFIG parameter 302,  has a
  456.     file name  equal to the  extension designated  in parameter 303  , and  the
  457.     extension designated in parameter 303.
  458.  
  459.     MASTER.CDR -  This is an FMS style directory.  Highly recommended to have a
  460.     size of 46  to allow  for placing  the DISK/AREA  number in  the last  four
  461.     positions  of description.   This  file is  located on  the drive  and path
  462.     designated  in CONFIG  parameter 302.   The  following is  an example  of a
  463.     master directory file, C:MASTER.CDR,  that might be used for  the "library"
  464.     subsystem.
  465.  
  466.          DEMO.DTA         9841  01-01-80 PRACTICE FORM                 680126
  467.          READ.ME           256  01-01-80 INTRODUCTORY TEXT FILE        673102
  468.          READ.ME           109  01-01-80 INTRODUCTORY TEXT FILE        671102
  469.           DK0680   ARC          10-23-87 FORGE VERSION 2.0                200
  470.           DK0673   ARC          10-23-87 FREEWAY ...(Disk 3 of 3)         200
  471.           DK0671   ARC          10-23-87 FREEWAY ... (Disk 1 of 3)        200
  472.          |            |         |        |                            |   |
  473.          +- 1->13     |         |        |                            |   |
  474.          File Name    +- 14->22 |        |                            |   |
  475.                       File Size |        |                            |   |
  476.                                 +- 24->31|                            |   |
  477.                                 File Date|                            |   |
  478.                                          +- 33->76                    |   |
  479.                                          File Description             |   |
  480.                                                               77->79 -+   |
  481.                                                                  DOS      |
  482.                                                                Directory  |
  483.                                                                 Number    |
  484.                                                                           |
  485.                                                                   80->82 -+
  486.                                                                   Category
  487.                                                                     Code
  488.  
  489.         The last four characters of the 46-character file description field are
  490.     used to  indicate the "library" pseudo-disk  that the file is in.   In this
  491.     way, when a caller lists files, it is self-evident in the description which
  492.     DOS subdirectory the caller  must change to within the  "library" subsystem
  493.     in order to download the file.
  494.  
  495.     RBBS-CDR.DEF  -  This  is the key file  to the successful operation of  the
  496.     LIBRARY section.  It consists of three fields on each line.
  497.  
  498.                      "AAAA","BBBBBBBBBBBBBBBBBBBBBB","CCCCCCCCCCCCCCCCCC"cr/lf
  499.  
  500.                      A - A  four  position field numbered from  0001  to  9999.
  501.                          This  is the DISK/AREA number assigned to  a  specific
  502.                          group of files.
  503.  
  504.                      B - This field has no size limit and is a full path to the
  505.                          area excluding the drive: designation. As an example:
  506.  
  507.                                \1_100\DISK0001
  508.                                \GAMES\ADVENTUR\DISK1
  509.                                \A_F\ALPHABET\DISK01\AREA36
  510.  
  511.                      C - This  field has no length limit but should be kept  at
  512.  
  513.  
  514.  
  515.     RBBS-PC's FILE MANAGEMENT SUBSYSTEM                                    12-9
  516.  
  517.  
  518.                          around  56  characters to keep from line wrap  on  the
  519.                          display.    It  should  contain  the  TITLE   of   the
  520.                          disk/area.
  521.  
  522.     A file containing a  description of the library subsystem's  category codes
  523.     must have  the name RBBS-CDR.DEF,  be in the  same DOS subdirectory  as the
  524.     other RBBS-PC ".DEF" files, and look similar:
  525.  
  526.            "0671","\601-700\DISK671","FREEWAY Payroll system (Disk 1 of 3)"
  527.            "0673","\601-700\DISK673","FREEWAY Payroll system (Disk 3 of 3)"
  528.            "0680","\601-700\DISK680","FORGE VERSION 2.0"
  529.  
  530.     The "library" subsystem can be supported without using the FMS.  To do this
  531.     each "directory" would have ".CDR" as it's extension (i.e. GAMES.CDR) -- or
  532.     whatever extension was designated in CONFIG parameter 303.
  533.  
  534.     Typically,  the "library" subsystem is used with  FMS.  When using FMS with
  535.     the "library" subsystem  it is necessary  to add categories to  the DIR.CAT
  536.     file.   One approach that works  well is utilizing categories  1-99 for the
  537.     normal  (i.e. non-library  area) downloads and  categories 100-200  for the
  538.     "library" downloads.
  539.  
  540.     The  basic assumption of RBBS-PC's  "library" sub-system is  that files are
  541.     stored in  DOS subdirectories  on the DOS  disk drive  specified in  CONFIG
  542.     parameter 301.
  543.  
  544.     12.6.1 How the "Library" Subsystem Works
  545.     ----------------------------------------
  546.     Before it is  possible to download  from the LIBRARY  area it is  mandatory
  547.     that the caller C)hange to the  desired library disk.  This is accomplished
  548.     by using  the C)hange command from  the library menu.   RBBS-PC will accept
  549.     any 1 to  4 digit number (padding  the front with zeros  to make it a  four
  550.     digit  number).  RBBS-PC will  then search the  RBBS-CDR.DEF file (position
  551.     AAAA only) for an exact match.  If no match is found then RBBS-PC indicates
  552.     that no  Library disk has been selected.  If  a match is found then RBBS-PC
  553.     will issue a  CHDIR command to the drive specified  in CONFIG parameter 301
  554.     and the path BBBBBBBB that it constructs from the RBBS-CDR.DEF file.  RBBS-
  555.     PC then  informs the caller that  Disk AAAA CCCCCCCCCCCC has  been selected
  556.     (i.e. "Disk 0680 FORGE VERSION 2.0").
  557.  
  558.     The caller can download individual files from the area selected or A)rchive
  559.     all the files in the  selected area.  If the caller decides to A)rchive all
  560.     the files in the selected  area, RBBS-PC will SHELL to the  Archive program
  561.     designated  in  CONFIG parameter  313  and located  in the  drive  and path
  562.     designated by  parameter 312.   RBBS-PC creates an  archived file  with the
  563.     name DKAAAA.ZZZ, where  AAAA is the disk/area number on the drive and  path
  564.     indicated by  CONFIG parameter 304, and ZZZ is the extension, which depends
  565.     on what archiving program is used.
  566.  
  567.     RBBS-PC  will then check to see if  there are any subdirectories within the
  568.     selected  area.    If  any  exist  then  RBBS-PC  will  again  Archive  the
  569.     subdirectories  and will create ZZZ  files with the  name DKAAAAa.ZZZ where
  570.     AAAA is  the disk/area number.  The designator, "a",  is an arbitrary id to
  571.     differentiate it from the  original ZZZ name.   If there are more than  one
  572.     subdirectories then the "a" would be replaced by "b", "c", "d", etc.
  573.  
  574.     When this is complete the caller is told what files are ready for download.
  575.     E.g.
  576.  
  577.